/**
 * Created by haua on 16/6/24.
 */
(function () {
    
    var verifi = {};

    verifi.isPhone = function (str) {
        return /^1[3|4|5|6|7|8|9]\d{9}$/.test(str)
    };

    verifi.isWeixin = function () {
        return navigator.userAgent.indexOf('MicroMessenger');
    };

    verifi.isIos = function () {
        return !!navigator.userAgent.toLowerCase().match(/iphone|ipad/)
    };

    if(!window.H)
        window.H = {};
    
    window.H.verifi = verifi;
}());